kubeadm init --apiserver-advertise-address $(hostname -i) --pod-network-cidr 10.5.0.0/16

kubectl apply -f https://raw.githubusercontent.com/cloudnativelabs/kube-router/master/daemonset/kubeadm-kuberouter.yaml

kubectl apply -f https://gitee.com/yumanbaiyao/yumankube/raw/master/pod.yaml

kubectl apply -f https://gitee.com/yumanbaiyao/yumankube/raw/master/podap.yaml

kubectl exec -it podng bash

kubectl run podap --image httpd:alpine --port 80

kubectl apply -f https://gitee.com/yumanbaiyao/yumankube/raw/master/deployment.yaml





kubectl expose pod podap --target-port 80 --type NodePort

kubeadm join 192.168.0.21:6443 --token dep3l8.ruj0l7jmyed5b7pv \
        --discovery-token-ca-cert-hash sha256:9ad4c159246e0811ad332cddab11cb2d4e8ea53d981f5fe423b73154205f9bed
        -------------------------------------------------------

kubectl apply -f https://gitee.com/yumanbaiyao/yumankube/raw/master/deploynacos.yaml
kubectl expose deployment dnacos --target-port 8848 --type NodePort
kubectl apply -f https://gitee.com/yumanbaiyao/yumankube/raw/master/deployuser.yaml
kubectl expose deployment duser --target-port 8081 --type NodePort
kubectl apply -f https://gitee.com/yumanbaiyao/yumankube/raw/master/deployorder.yaml